package com.sias.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.sias.entity.dto.LoginDto;
import com.sias.entity.dto.UserDetailsDto;
import com.sias.entity.dto.UserDto;
import com.sias.entity.pojo.User;
import com.sias.entity.vo.LoginVo;
import com.sias.entity.vo.TeacherVo;
import com.sias.entity.vo.UserDetailsVo;
import com.sias.entity.vo.UserVo;

import java.util.List;

/**
* @author chf
* @description 针对表【user】的数据库操作Service
* @createDate 2024-07-05 10:34:28
*/
public interface UserService extends IService<User> {


    int saveUserDetails(UserDetailsDto userDetailsDto);

    LoginVo login(LoginDto loginDto);

    User getUserInfo(String token);

    Page<UserVo> listAll(UserDto userDto, Integer pageNum, Integer pageSize);

    UserDetailsVo selectById(String userId);


    int deleteUser(String userId);

    int updateUserDetailsVip(UserDetailsDto userDetailsDto);

    List<TeacherVo> selectTeacher();
}
